package demo6;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class demo {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context
                = new AnnotationConfigApplicationContext("demo6");

        Person person = context.getBean(Person.class);
        Person person1 = context.getBean(Person.class);

        System.out.println( person);
        System.out.println( person1);
    }
}
